<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
    var num1=17;
    if (num1%2==0){
        alert(num1+"是偶数");
    }else {
        alert(num1+"是奇数");
    }
</script>
</body>
</html>